package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Finance;
import com.itgaoshu.hospitalproject.bean.SdoctorDuibi;
import com.itgaoshu.hospitalproject.bean.currentFinance;
import com.itgaoshu.hospitalproject.mapper.FinanceMapper;
import com.itgaoshu.hospitalproject.service.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinanceServiceImpl implements  FinanceService{
    @Autowired
    private FinanceMapper financeMapper;

    @Override
    public List<Double> reportYearFinance(String year) {
        return financeMapper.reportYearFinance(year);
    }

    @Override
    public List<Double> zhuYuanYearFinance(String year) {
        return financeMapper.zhuYuanYearFinance(year);
    }

    @Override
    public List<Finance> reportYearBingFinance() {
        return financeMapper.reportYearBingFinance();
    }

    @Override
    public List<Finance> zhuYuanYearBingFinance() {
        return financeMapper.zhuYuanYearBingFinance();
    }

    @Override
    public List<SdoctorDuibi> doctorDuibi(SdoctorDuibi sdoctorDuibi) {
        return financeMapper.doctorDuibi(sdoctorDuibi);
    }

    @Override
    public List<SdoctorDuibi> zDoctorDuibi(SdoctorDuibi sdoctorDuibi) {
        return financeMapper.zDoctorDuibi(sdoctorDuibi);
    }

    @Override
    public List<currentFinance> currentFinance(String current) {
        return financeMapper.currentFinance(current);
    }
}
